﻿using System;
using System.IO;
using System.Web;
using System.Web.UI.HtmlControls;

public partial class System_Controls_FieldTemplates_AjaxUpload : System.Web.UI.UserControl
{
    byte[] _Value;
    string _ValueType;

    public string Title
    {
        get { return lb_Title.Text; }
        set { lb_Title.Text = value; }
    }
    public byte[] Value
    {
        get { return afu_Value.FileBytes; }
        set { _Value = value; }
    }
    public string ValueType
    {
        get { return afu_Value.ContentType; }
        set { _ValueType = value; }
    }
    
    protected void Page_Load(object sender, EventArgs e)
    {
        if (afu_Value.HasFile)
        {
            _ValueType = afu_Value.ContentType;
            _Value = afu_Value.FileBytes;
        }
    }
    protected void afu_Value_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
    {

    }
    protected void afu_Value_UploadedFileError(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
    {

    }
}